package common;

/**
 * 元素
 *
 * @author WangChenyu
 * @since 2024-04-15 13:59
 */
public class Node<T> {

    public T val;

    public Node<T> next;

    public Node(T val, Node<T> next) {
        this.val = val;
        this.next = next;
    }

    @Override
    public String toString() {
        return "Node{" +
                "val=" + val +
                ", next=" + next +
                '}';
    }
}
